<%@ page language="java" pageEncoding="UTF-8" %>
<%@ page import="java.util.List" %>
<%@ page import="model.User" %>
<jsp:useBean id="dob" class="Utils.DBUtils"/>
<%
  Object user = request.getSession().getAttribute("user");
  if (user != null) {
    User user1 = (User) user;
%>
<html>
<head>
  <meta charset="utf-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
  <meta name="renderer" content="webkit">
  <meta name="viewport" content="width=device-width"/>
  <meta name="author" content="www.lzqcode.com"/>
  <meta name="robots" content="all"/>
  <title>共享笔记</title>
  <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="layui/css/layui.css"/>
  <link rel="stylesheet" href="css/master.css"/>
  <link rel="stylesheet" href="css/gloable.css"/>
  <link rel="stylesheet" href="css/nprogress.css"/>
  <link rel="stylesheet" href="css/blog.css"/>

</head>
用户名：<%=user1.getName()%>   <br>
密码：<%=user1.getPassword()  %>
权限<%=user1.getLevel()  %><br>
<body>
<div class="header">
</div>
<header class="gird-header">
  <div class="header-fixed">
    <div class="header-inner">
      <a href="javascript:void(0)" class="header-logo" id="logo">Yuuu</a>
      <nav class="nav" id="nav">
        <ul>
          <li><a href="index.jsp">首页</a></li>
          <li><a href="#">博客</a></li>
          <li><a href="#">留言</a></li>
          <li><a href="#">日记</a></li>
          <li><a href="#">友链</a></li>
        </ul>
      </nav>
      <a href="/User/QQLogin" class="blog-user">
        <i class="fa fa-qq"></i>
      </a>
      <a class="phone-menu">
        <i></i>
        <i></i>
        <i></i>
      </a>
    </div>
  </div>
</header>
<div class="doc-container" id="doc-container">
  <div class="container-fixed">
    <div class="col-content">
      <div class="inner">
        <article class="article-list bloglist" id="LAY_bloglist">
          <%
            String[] temp = {"id", "userid", "title", "content", "time", "share"};
            List<String[]> vec = dob.getData("classnote", temp, null, user1);
            for (int i = 0; i < vec.size(); i++) {
              String[] row = vec.get(i);

          %>
          <tr>
              <%
      int userid= Integer.parseInt(row[1]);
      User user2=dob.getUser("User",userid);

%>
            <section class="article-item zoomIn article">
              <%--                            <div class="fc-flag">置顶</div>--%>
              <h5 class="title">
                <span class="fc-blue">[<%=user2.getName()%>]</span>
                <a href="#"><%=row[2]%>
                </a>
              </h5>
              <div class="time">
                <%--                                <span class="day">2</span>--%>
                <%--                                <span class="month fs-18">9<span class="fs-14">月</span></span>--%>
                <span class="year fs-18 ml10"><%=row[4]%></span>
              </div>
              <div class="content">
<%--                <a href="./read/不知道干啥.html" class="cover img-light">--%>
<%--                  <img src="image/read/yili.gif">--%>
<%--                </a>--%>
                <%=row[3]%>
              </div>
              <div class="read-more">
                <a href="read.jsp?id=<%=row[0]%>" class="fc-black f-fwb">查看</a>
              </div>
              <aside class="f-oh footer">
                <div class="f-fl tags">
                  <span class="fa fa-tags fs-16"></span>
                  <a class="tag">就在这理发店</a>
                </div>
                <div class="f-fr">
									<span class="read">
										<i class="fa fa-eye fs-16"></i>
										<i class="num">100</i>
									</span>
                  <span class="ml20">
										<i class="fa fa-comments fs-16"></i>
										<a href="javascript:void(0)" class="num fc-grey">9</a>
									</span>
                </div>
              </aside>
            </section>
              <% }%>
              <% }%>

            <section class="article-item zoomIn article">
              <div class="fc-flag">置顶</div>
              <h5 class="title">
                <span class="fc-blue">【原创】</span>
                <a href="read.html">不知道干啥的不知道干啥</a>
              </h5>
              <div class="time">
                <span class="day">2</span>
                <span class="month fs-18">9<span class="fs-14">月</span></span>
                <span class="year fs-18 ml10">2022</span>
              </div>
              <div class="content">
                <a href="./read/不知道干啥.html" class="cover img-light">
                  <img src="image/read/yili.gif">
                </a>
                不知道干啥的不知道干啥不知道干啥的不知道干啥不知道干啥的不知道干啥不知道干啥的不知道干啥不知道干啥的不知道干啥不知道干啥的不知道干啥不知道干啥的不知道干啥不知道干啥的不知道干啥
                理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店理发店
              </div>
              <div class="read-more">
                <a href="./read/不知道干啥.html" class="fc-black f-fwb">继续阅读</a>
              </div>
              <aside class="f-oh footer">
                <div class="f-fl tags">
                  <span class="fa fa-tags fs-16"></span>
                  <a class="tag">就在这理发店</a>
                </div>
                <div class="f-fr">
									<span class="read">
										<i class="fa fa-eye fs-16"></i>
										<i class="num">100</i>
									</span>
                  <span class="ml20">
										<i class="fa fa-comments fs-16"></i>
										<a href="javascript:void(0)" class="num fc-grey">9</a>
									</span>
                </div>
              </aside>
            </section>
            //不知道干啥
        </article>
      </div>
    </div>
    <div class="col-other">
      <div class="inner">

        <!--遮罩-->
        <div class="blog-mask animated layui-hide"></div>
<%--        <div class="other-item">--%>
<%--          <h5 class="other-item-title">热门文章</h5>--%>
<%--          <div class="inner">--%>
<%--            <ul class="hot-list-article">--%>
<%--              <li><a href="./read/read.html">java学习路线</a></li>--%>
<%--              <li><a href="./read/springboot.html">SpringBoot</a></li>--%>
<%--              <li><a href="./read/HashMap.html">HashMap</a></li>--%>
<%--              <li><a href="/Blog/Read/4">444444444</a></li>--%>
<%--              <li><a href="/Blog/Read/7"></a>55555555</li>--%>
<%--              <li><a href="/Blog/Read/11">6666666666</a></li>--%>
<%--              <li><a href="/Blog/Read/14">7777777777</a></li>--%>
<%--              <li><a href="/Blog/Read/8">888888888</a></li>--%>
<%--            </ul>--%>
<%--          </div>--%>
<%--        </div>--%>
<%--        <div class="other-item">--%>
<%--          <h5 class="other-item-title">置顶推荐</h5>--%>
<%--          <div class="inner">--%>
<%--            <ul class="hot-list-article">--%>
<%--              <li><a href="./read/不知道干啥.html">理发店</a></li>--%>
<%--              <li><a href="./read/read.html">java学习路线</a></li>--%>
<%--              <li><a href="./read/springboot.html">SpringBoot</a></li>--%>
<%--              <li><a href="./read/HashMap.html">HashMap</a></li>--%>
<%--            </ul>--%>
<%--          </div>--%>
<%--        </div>--%>
<%--        <div class="other-item">--%>
<%--          <h5 class="other-item-title">最近访客</h5>--%>
<%--          <div class="inner">--%>
<%--            <dl class="vistor">--%>
<%--              <dd><a href="javasript:;"><img src="image/a1.png"><cite>张三</cite></a></dd>--%>
<%--              <dd><a href="javasript:;"><img src="image/a4.png"><cite>李四</cite></a></dd>--%>
<%--              <dd><a href="javasript:;"><img src="image/a2.png"><cite>王五</cite></a></dd>--%>
<%--              <dd><a href="javasript:;"><img src="image/a3.png"><cite>赵六</cite></a></dd>--%>
<%--            </dl>--%>
<%--          </div>--%>
<%--        </div>--%>
      </div>
    </div>
  </div>
</div>
<footer class="grid-footer">
  <div class="footer-fixed">
    <div class="copyright">
      <div class="info">
        <div class="contact">
          <a href="javascript:void(0)" class="github" target="_blank"><i class="fa fa-github"></i></a>
          <a href="https://wpa.qq.com/msgrd?v=3&uin=930054439&site=qq&menu=yes" class="qq" target="_blank"
             title="930054439"><i class="fa fa-qq"></i></a>
          <a href="https://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=gbiysbG0tbWyuMHw8K-i7uw"
             class="email" target="_blank" title="930054439@qq.com"><i class="fa fa-envelope"></i></a>
          <a href="javascript:void(0)" class="weixin"><i class="fa fa-weixin"></i></a>
        </div>
        <p class="mt05">
          Copyright &copy; 2022 笔记
        </p>
      </div>
    </div>
  </div>
</footer>
<script src="layui/layui.js"></script>
<script src="js/yss/gloable.js"></script>
<script src="js/plugins/nprogress.js"></script>
<script>NProgress.start();</script>
<script src="js/yss/article.js"></script>
<script>
  window.onload = function () {
    NProgress.done();
  };
</script>
</body>
</html>
